package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 精品课与智能课或者刷题班课程冲突（排除智能课）
 * </p>
 *
 * @author hpiggy
 * @since 2023-10-03
 */
@TableName("course_scheduling_clash")
@ApiModel(value = "CourseSchedulingClash对象", description = "精品课与智能课或者刷题班课程冲突（排除智能课）")
@Data
public class CourseSchedulingClash implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long studentId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("与之冲突的排课id")
    private Long schedulingDetailId;

    @ApiModelProperty("补冲突的排课id")
    private Long outSchedulingDetailId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
